package com.dingding.gmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dingding.gmall.common.utils.PageUtils;
import com.dingding.gmall.member.dto.MemberLoginDTO;
import com.dingding.gmall.member.dto.MemberRegistDTO;
import com.dingding.gmall.member.entity.MemberEntity;
import com.dingding.gmall.member.exception.PhoneException;
import com.dingding.gmall.member.exception.UserNameException;

import java.util.Map;

/**
 * 会员
 *
 * @author liudingding
 * @email sunlightcs@gmail.com
 * @date 2020-07-02 22:38:49
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistDTO memberRegistDTO);

    void checkPhoneUnique(String phone) throws PhoneException;

    void checkUserNameUnique(String username) throws UserNameException;

    MemberEntity login(MemberLoginDTO loginDTO);
}

